<?php
/**
 * Created by PhpStorm.
 * User: baiyang
 * Date: 16-7-15
 * Time: 下午1:25
 * 储存和读取反馈信息
 */

require_once ("clSqlOperation.php");
require_once ('clJson.php');

class clFeedBack extends clJson
{
    private $saveFeedback;      //存储操作
    private $jsonResult;        //解析json的结果

    function __construct($requestJson)
    {
        parent::__construct($requestJson);
        $this->jsonResult = parent::fnGetJson();
    }

    /**
     * @return bool
     *function:实现用户的反馈
     *parament:
     */
    function fnSaveFeedBack()
    {
        $this->saveFeedback=new clSqlOperation($this->jsonResult,'app_feedback',null,null);
        $result =  $this->saveFeedback->fnInsert();
        return $result;
    }
}